package com.luobo.home.service;

import com.luobo.home.dao.ItemsMapper;
import com.luobo.home.pojo.Items;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class ItemsServiceImpl implements ItemsService {
    @Autowired
    private ItemsMapper itemsMapper;
    @Override
    public int queryCount() {
        return itemsMapper.queryCount();
    }
    @Override
    public int queryCountForMap(Map map) {
        return itemsMapper.queryCountForMap(map);
    }
    @Override
    public List<Items> queryAllData() {
        return itemsMapper.queryAllData();
    }

    @Override
    public List<Items> queryDataForMap(Map map) {
        return itemsMapper.queryDataForMap(map);
    }

    @Override
    public int delDataForMap(Map map) {
        return itemsMapper.delDataForMap(map);
    }

    @Override
    public int delData(Items logicDepositPcs) {
        return itemsMapper.delData(logicDepositPcs);
    }

    @Override
    public int addData(Items logicDepositPcs) {
        return itemsMapper.addData(logicDepositPcs);
    }
    public int updateDatabyId(Items logicDepositPcs) {
        return itemsMapper.updateDatabyId(logicDepositPcs);
    }

    @Override
    public int batchAddData(List<Items> logicDepositPcs) {
        return itemsMapper.batchAddData(logicDepositPcs);
    }
}
